Skip to content

Move to standalone components #3155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

tom-wegener
Copy link

Updates all components to standalone components

It got a bit big but I've tried to move all components to standalone components. My test-setup is a bit confused with the changes but it works with the tests and storybook.

Changelog

Changed

  • updates all components to standalone components
  • updates all tests to work with the standalone components
  • updates storybook to work with standalone components
  • keeps the module functionality

I'm on vacation for the next two weeks but will look into this from time to time.

@tom-wegener tom-wegener requested a review from a team as a code owner July 4, 2025 07:51
Copy link

netlify bot commented Jul 4, 2025

Deploy Preview for carbon-components-angular ready!

Name Link
🔨 Latest commit 4d43533
🔍 Latest deploy log https://app.netlify.com/projects/carbon-components-angular/deploys/686787e6d1c972000808354d
😎 Deploy Preview https://deploy-preview-3155--carbon-components-angular.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Jul 4, 2025

Deploy Preview for carbon-angular-next ready!

Name Link
🔨 Latest commit 4d43533
🔍 Latest deploy log https://app.netlify.com/projects/carbon-angular-next/deploys/686787e6cfcf55000876a555
😎 Deploy Preview https://deploy-preview-3155--carbon-angular-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

exports: [
Accordion,
AccordionItem
],
imports: [
CommonModule,
IconModule
IconModule,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing work, thank you for this!

Do we still need modules? I thought we wouldn't need to keep the Modules once we go standalone or is this for backwards compatibility?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I wanted to keep the modules for backwards compatibility since angular 18 still allows the functionality and I didn’t want to break my own apps by upgrading.

in the end we don’t need them anymore and I/we/soneone could look into the angular migrations to ease the transition from modules to standalone.

@georgmu
Copy link

georgmu commented Jul 14, 2025

@Akshat55 what is your stance or policy regarding backwards compatibility on the next branch? There are a lot of interesting features in current angular releases, also with regards to signals and zoneless.

Would it be okay to make the next branch angular 20+ and drop backwards compatibility? The version numbers here (v5, ...) does not align with carbon upstream (which is at 11) nor with angular (20), so if you have no internal policy of supporting all versions of angular, maybe a clear cut and upgrade with the next branch would do it as well?

@Akshat55
Copy link
Contributor

Hey @georgmu, we need backwards compatibility, because many teams have massive applications and are slow to upgrade to latest angular versions + features. However, this should be taken care of with v5 - just means we will have to support v5 until Carbon 12 is released or have enough teams migrated to use v6.

I would be okay with Angular 20 as next branch, it would have to be another PR though.

This PR will take some time to review/merge - I want to have some teams test it possible. I'll also be testing locally via linking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants